<html class="x-admin-sm" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8">
	<title>输入提取码</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/login.css">
    <link rel="stylesheet" href="/static/css/xadmin.css">
    <script src="/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/js/xadmin.js"></script>
    <script>
        function validateAuthCode(){
             var authcode = $("input[name = 'authcode']").val();

             if(authcode == 5678){
                //当提取码正确则，跳转文件列表列表
                $("#main").attr("action","/s/"+$("#fileUUID").val());

                $("#main").submit();
             }
        }

    </script>

</head>
<body class="login-bg">

    <div class="login layui-anim layui-anim-up">

        <div class="message">输入提取码</div>
        <hr class="hr15" style="height: 10px;">
        <form id="main" method="post" class="layui-form" action="/s/1XF2qEFBKblSwJFB3A_Hu3w">
            <input name="authcode" lay-verify="required" placeholder="请输入提取码"   type="text" style="width: 50%">
            <input value="提取" lay-submit lay-filter="login" onclick="validateAuthCode()" style="width:100%;" type="button">
            <input id = "fileUUID" type="hidden" th:value="${surl}"/>
            <hr class="hr20" >
        </form>
    </div>



</body>
</html>